package com.xiaoq.users.entity;

import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

/**
 * Created by chenjh on 2018/3/27.
 * 用户手机归属地信息
 */
@Entity(value="user_phone", noClassnameStored=true)
public class UserPhoneEntity extends MongoEntity {

    /*** 用户主键 对应 UserEntity 中id*/
    private String userId;

    /*** 电话号码 */
    private String mobile;

    /***  */
    private String to;

    /*** 运营商 */
    private String corp;

    /*** 归属省份 */
    private String province;

    /*** 归属城市 */
    private String city;

    /*** 城市区号 */
    private String areaCode;

    /*** 城市邮编 */
    private String postCode;

    /*** 号码是否正确, true | false  */
    private Boolean phoneValid;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getCorp() {
        return corp;
    }

    public void setCorp(String corp) {
        this.corp = corp;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public Boolean getPhoneValid() {
        return phoneValid;
    }

    public void setPhoneValid(Boolean phoneValid) {
        this.phoneValid = phoneValid;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "UserPhoneEntity{" +
                "userId='" + userId + '\'' +
                ", mobile='" + mobile + '\'' +
                ", to='" + to + '\'' +
                ", corp='" + corp + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", postCode='" + postCode + '\'' +
                ", phoneValid=" + phoneValid +
                '}';
    }
}
